package com.hongxun.design.mytools;

import android.app.Activity;

/**
 * Created by zerdoor_pc on 2016/8/3.
 */
public class CheckClickTime {
    private static long mExitTime=0;
    private static Boolean flag=true;
    public static boolean back(Activity activity) {
        if ((System.currentTimeMillis() - mExitTime) > 800) {
            flag=true;
            mExitTime = System.currentTimeMillis();
        } else {
            ToastShow.showShort(activity, "不要频繁操作！");
            flag=false;
        }
        return flag;
    }
}
